package com.example.blog.common.exception;

import lombok.Getter;

@Getter
public class ServiceException extends RuntimeException {
    private final int code;
    private final String message;

    public ServiceException(String message) {
        this(400, message);
    }

    public ServiceException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
} 